﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FreedomERP.Comm;
using FreedomERP.Models;
using FreedomERP.Models.Bd;

namespace FreedomERP.Dao.Bd
{
    /// <summary>
    /// 商家信息管理数据库接口
    /// 作者：陈新杰
    /// </summary>
    interface IBdOrgunitDao
    {
        /// <summary>
        /// 根据商家的名字查找商家的Id
        /// </summary>
        /// <param name="fOrgunitName"></param>
        /// <returns></returns>
        DAOResult<String> findOrgunitId(String fOrgunitName);

        /// <summary>
        ///  查找商家信息
        /// </summary>
        /// <param name="fId"></param>
        /// <param name="fOrgunitName"></param>
        /// <param name="fOrgunitNumber"></param>
        /// <param name="start"></param>
        /// <param name="limit"></param>
        /// <returns></returns>
        DAOResult<BdOrgunit> findOrgunit(String fId, String fOrgunitName, String fOrgunitNumber, int start, int limit);

        /// <summary>
        /// 根据商家ID获取商家信息
        /// </summary>
        /// <param name="fId"></param>
        /// <returns></returns>
        BdOrgunit findOrgunitById(String fId);

    }
}
